package IC.lir.instructions;

import IC.Constants;
import IC.SymbolTable.Symbol;

public class Memory extends Operand{
	
	private Symbol s;
	
	//C'tor
	public Memory() {
		this.s = null;
	}
	
	//C'tor
	public Memory(Symbol s) {
		this.s = s;
	}
	
	@Override
	public String toString() {
		if(s == null)
			return Constants.THIS;
		return "s" + s.getScopeUniqueID() + s.getId();
	}
}